package year2019.month0234;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @desc 描述
 * create on 2019/2/20 by watson
 */
public class MainTest20 {

    public static void main(String[] args){
        final LocalDateTime NOW = LocalDateTime.now();

        System.out.println(NOW.format(DateTimeFormatter.ISO_DATE));
        System.out.println(NOW.format(DateTimeFormatter.ISO_TIME));
        System.out.println(NOW.format(DateTimeFormatter.ofPattern("yyyy-MM-dd")));
        System.out.println(NOW.format(DateTimeFormatter.ofPattern("HH:mm:ss")));
    }

}
